Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/pino

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/pino

TypeScript definitions for pino

  • 6.3.12
  • ts3.7
  • ts3.8
  • ts3.9
  • ts4.0
  • ts4.1
  • ts4.2
  • ts4.3
  • ts4.4
  • ts4.5
  • npm
  • Socket score

Version published
Weekly downloads
560K
decreased by-10.33%
Maintainers
1
Weekly downloads
 
Created

What is @types/pino?

@types/pino provides TypeScript type definitions for the Pino logging library, which is a fast and low-overhead logging library for Node.js applications.

What are @types/pino's main functionalities?

Basic Logging

This feature allows you to create a basic logger instance and log messages at the 'info' level.

const pino = require('pino');
const logger = pino();
logger.info('Hello, world!');

Custom Log Levels

This feature allows you to define custom log levels for more granular logging.

const pino = require('pino');
const logger = pino({
  customLevels: {
    foo: 35
  }
});
logger.foo('This is a custom log level');

Child Loggers

This feature allows you to create child loggers that inherit properties from the parent logger.

const pino = require('pino');
const logger = pino();
const child = logger.child({ a: 'property' });
child.info('Hello from child logger');

Log Redaction

This feature allows you to redact sensitive information from logs.

const pino = require('pino');
const logger = pino({
  redact: ['req.headers.authorization']
});
logger.info({ req: { headers: { authorization: 'secret' } } }, 'Request received');

Other packages similar to @types/pino

FAQs

Package last updated on 19 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc